gtk: Stop using deprecated pango api
authorMatthias Clasen <mclasen@redhat.com>
Thu, 31 Jan 2019 19:07:08 +0000 (14:07 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 4 Feb 2019 23:28:31 +0000 (18:28 -0500)
gtk/gtkentry.c
gtk/gtktextbtree.c
gtk/gtktextview.c

index f5231424e4d054cda94dd1c11a22c2e4c682761d..2115852aa3a41474f2ef134fa410ad7a7b77cab4 100644 (file)
@@ -5477,7 +5477,7 @@ gtk_entry_create_layout (GtkEntry *entry,
       PangoDirection pango_dir;
 
       if (gtk_entry_get_display_mode (entry) == DISPLAY_NORMAL)
-       pango_dir = pango_find_base_dir (display_text, n_bytes);
+       pango_dir = gdk_find_base_dir (display_text, n_bytes);
       else
        pango_dir = PANGO_DIRECTION_NEUTRAL;
 
index a51e96d8b105614c80783c583f9524dcd7c9e886..a4f9b5398fc1dde0e40a42043580eea7bfbca12d 100644 (file)
@@ -66,6 +66,8 @@
 #include "gtkdebug.h"
 #include "gtktextmarkprivate.h"
 #include "gtktextsegment.h"
+#include "gtkpango.h"
+#include "gdk-private.h"
 
 /*
  * Types
@@ -595,8 +597,7 @@ gtk_text_btree_resolve_bidi (GtkTextIter *start,
             {
              PangoDirection pango_dir;
 
-              pango_dir = pango_find_base_dir (seg->body.chars,
-                                              seg->byte_count);
+              pango_dir = gdk_find_base_dir (seg->body.chars, seg->byte_count);
              
               if (pango_dir != PANGO_DIRECTION_NEUTRAL)
                 {
index bbdf7efb686742248a7086df833fd34b56d810fc..2950ad7dec25f338690ee4b822abd235ac397e8d 100644 (file)
@@ -56,6 +56,7 @@
 #include "gtktoolbar.h"
 #include "gtkmagnifierprivate.h"
 #include "gtkemojichooser.h"
+#include "gtkpango.h"
 
 #include "a11y/gtktextviewaccessibleprivate.h"
 
@@ -5831,7 +5832,7 @@ iter_line_is_rtl (const GtkTextIter *iter)
   gtk_text_iter_set_line_offset (&start, 0);
   gtk_text_iter_forward_line (&end);
   text = gtk_text_iter_get_visible_text (&start, &end);
-  direction = pango_find_base_dir (text, -1);
+  direction = gdk_find_base_dir (text, -1);
 
   g_free (text);